/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25397
 * Date: 2021-11-08
 * Time: 19:49
 */
class people{
    /*public static int count;
    public String name;
    public people(){
        System.out.println("people()不带参数的构造方法");
    }
    public people(String name){
        this.name=name;
        System.out.println("people(String)带String参数的构造方法");
    }
    {
        System.out.println("实例代码块");
    }
    static{
        System.out.println("静态代码块");
    }*/
    public void eat(){
        System.out.println("正在吃东西");
    }
    public void drink(){
        System.out.println("正在喝东西");
    }
}

class Test{
    public void func(){
        System.out.println("abc");
    }
}
public class TestDemo {
    public static void main0(String[] args) {
        new people().eat();
        new people().drink();
    }

    public static void main(String[] args) {

        Test test=new Test();
        test.func();
    }
}

